//World contains all the data from the levels which is tiles,enemies,background,scenery and checkpoints.
//Here is also implemented the reset,load and save of the game

#include "World.h"

World::World(void)
{
	enemyCount= 0;
	checkPointCount = 0;
	sceneryCount = 0;

	tiles = NULL;

	finishedGame = false;


}

World::~World(void)
{
}

void World::Draw(HDC bufDC)
{
	for(int k = 0; k < sceneryCount; k++){
		scenerys[k]->Draw(bufDC);
	}
	tiles->Draw(bufDC);
	for(int k = 0; k < enemyCount; k++){
		enemies[k]->Draw(bufDC);
	}
	for(int k = 0; k < powerUpCount; k++){
		powerUps[k]->Draw(bufDC);
	}
	bullets.Draw(bufDC);
}

int World::Update(double x)
{
	for(int k = 0; k < enemyCount; k++){
		enemies[k]->Update();
	}
	for(int c = 0; c < checkPointCount; c++){
		//if the update returns something else than -1 
		//then we are advancing to the other level
		int i = checkPoints[c]->Update();
		if(i != -1){
			return i;
		}
	}
	for(int z = 0; z < sceneryCount; z++){
		scenerys[z]->Update(x);
	}
	for(int k = 0; k < powerUpCount; k++){
		powerUps[k]->Update();
	}
	bullets.Update();
	return -1;
}

bool World::canGoThere(int x, int y, int width, int height){
	return tiles->canGoThere(x,y,width,height);
}

void World::Reset(){

	for(int k = 0; k < enemyCount; k++){
		delete(enemies[k]);
		enemies[k] = NULL;
	}
	for(int c = 0; c < checkPointCount; c++){
		delete(checkPoints[c]);
		checkPoints[c] = NULL;
	}
	for(int k = 0; k < sceneryCount; k++){
		delete(scenerys[k]);
		scenerys[k] = NULL;
	}
		for(int k = 0; k < powerUpCount; k++){
		delete(powerUps[k]);
		powerUps[k] = NULL;
	}

	bullets.Reset();
	delete(tiles);
	tiles = NULL;

	enemyCount = 0;
	checkPointCount = 0;
	sceneryCount = 0;
	powerUpCount = 0;

}

void World::Init(CPlayer *player, int i, HANDLE *HImage){
	World::HImage = HImage;
	if(i == 2){
		Reset();
		LoadLevel2(player);	
	}
	else if(i == 1){
		LoadLevel1(player);	
	}
	else if(i > 2){
		LoadLevel1(player);	
		this->finishedGame = true;
	}
	player->tiles =tiles;

}


void World::LoadLevel1(CPlayer *player){



	char picfile[] = "res/stars.bmp";
	*HImage = LoadImage(NULL, picfile, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);

	if(!tiles == NULL){
		//Reset();

		//delete(enemies);
	}

	level = 1;
	int **map;
	map=new int* [100];
	for(int i=0;i<100;i++)
	*(map+i)=new int[20];
	//the map is generated by our tile editor
	//the numbers stand for a specific type of tile
	//their behavior can be found in TileRenderer
	int map2[20][100] = {
	{  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 282, 282, 282, 282, 282, 4,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1,  -1,  -1,  -1, 30, 35, 40, 45, 48, 51,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1,  -1, 20, 26, 31, 282, 282, 282, 282, 52, 56,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 81,  -1, 81,  -1, 81,  -1, 81,  -1, 81,  -1, 81, 81, 81, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1, 13, 21, 282, 282, 282, 282, 282, 282, 282, 57, 61,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1, 14, 282, 282, 282, 282, 282, 282, 282, 282, 282, 62,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 5, 15, 282, 282, 282, 282, 282, 282, 282, 282, 282, 63, 67,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 6, 16, 22, 282, 282, 282, 282, 282, 282, 282, 282, 282, 68, 76,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 7, 17, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 69, 77,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 8, 282, 282, 282, 32, 282, 282, 282, 282, 282, 282, 282, 70, 78,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1, 81,  -1, 81,  -1, 81,  -1, 81,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 9, 282, 23, 282, 282, 282, 282, 282, 282, 282, 282, 282, 71,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 92,  -1,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1,  -1, 92,  -1,  -1,  -1,  -1, 92,  -1,  -1,  -1,  -1, 92,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 10, 282, 282, 27, 282, 282, 282, 282, 282, 282, 282, 64, 73, 79,  -1,  -1,  -1,  -1,  -1, 3, 3, 282, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1, 86, 93,  -1,  -1,  -1,  -1, 3, 81, 81, 81, 81,  -1,  -1, 81, 81, 81, 81, 81, 81, 81, 3,  -1,  -1, 3,  -1,  -1, 86, 93,  -1,  -1,  -1, 86, 93,  -1,  -1,  -1, 86, 93,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 11, 18, 24, 282, 282, 282, 282, 46, 49, 53, 58, 65, 74, 80,  -1,  -1,  -1,  -1,  -1, 3, 3, 2, 3, 3,  -1,  -1,  -1,  -1, 81,  -1, 81,  -1, 81,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1, 87, 94, 97,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1,  -1, 87, 94, 97,  -1,  -1, 87, 94, 97,  -1,  -1, 87, 94, 97,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{ 12, 19, 25, 28, 33, 36, 41, 47, 50, 54, 59, 66, 75,  -1,  -1,  -1,  -1,  -1,  -1, 0,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1, 82, 88, 95, 98,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1, 82, 88, 95, 98,  -1, 82, 88, 95, 98,  -1, 82, 88, 95, 98,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1,  -1,  -1, 29, 34, 37, 42,  -1,  -1, 55, 60,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1, 83, 89, 282, 99,  -1,  -1,  -1, 3, 81, 81, 81, 81,  -1,  -1,  -1,  -1,  -1, 81, 81, 81, 81, 3,  -1,  -1, 3,  -1, 83, 89, 282, 99,  -1, 83, 89, 282, 99,  -1, 83, 89, 282, 99,  -1,  -1,  -1,  -1, 129, 132,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1,  -1,  -1,  -1,  -1, 38, 43,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1, 84, 90, 282, 100,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 81,  -1,  -1,  -1,  -1,  -1, 81,  -1,  -1,  -1, 3,  -1,  -1,  -1,  -1, 84, 90, 282, 100,  -1, 84, 90, 282, 100,  -1, 84, 90, 282, 100,  -1,  -1,  -1, 127, 130, 133, 135,  -1,  -1,  -1,  -1,  -1,  -1,  -1}, 
	{  -1,  -1,  -1,  -1,  -1, 39, 44,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3,  -1, 85, 91, 96, 101,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 81,  -1,  -1,  -1,  -1,  -1, 81,  -1,  -1,  -1, 3,  -1,  -1, 3,  -1, 85, 91, 96, 101,  -1, 85, 91, 96, 101,  -1, 85, 91, 96, 101,  -1,  -1,  -1, 128, 131, 134, 136, 137, 138, 139, 283,  -1,  -1,  -1}, 
	{ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}, 
	{ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}
	};

	for(int i =0; i < 20; i++){
		for(int j =0; j < 100; j++){
			int inter = (map2[i][j]);
			map[j][i] = inter;
		}
	}


	tiles = new Tiles(100,20,map);
	bullets.tiles = tiles;

	enemyCount = 25;
	enemies = new CEnemy*[30];
	checkPoints = new Checkpoint*[2];
	scenerys = new CScenery*[10];
	powerUps = new CPowerUp*[10];

	checkPointCount = 2;
	sceneryCount = 1;
	powerUpCount = 2;

	//powerUps
	powerUps[0] = new CDoubleHealth();
	powerUps[1] = new CDisguise();
	powerUps[0]->Init(29, 1, player, tiles);
	powerUps[1]->Init(66, 2, player, tiles);

	//tree apples
	enemies[0] = new CApple();
	enemies[1] = new CApple();
	enemies[2] = new CApple();
	enemies[3] = new CApple();
	enemies[4] = new CApple();
	enemies[5] = new CApple();
	enemies[0]->Init(3, 4, player, tiles);
	enemies[1]->Init(6, 8, player, tiles);
	enemies[2]->Init(7, 3, player, tiles);
	enemies[3]->Init(8, 9, player, tiles);
	enemies[4]->Init(9, 6, player, tiles);
	enemies[5]->Init(5, 10, player, tiles);
	
	//cave 1 apples
	enemies[8] = new CApple();
	enemies[9] = new CApple();
	enemies[10] = new CApple();
	enemies[11] = new CApple();
	enemies[12] = new CApple();
	enemies[8]->Init(28, 9, player, tiles);
	enemies[9]->Init(30, 9, player, tiles);
	enemies[10]->Init(32, 9, player, tiles);
	enemies[11]->Init(29, 12, player, tiles);
	enemies[12]->Init(31, 12, player, tiles);

	//cave 1 melons
	enemies[6] = new CMelon();
	enemies[7] = new CMelon();
	enemies[6]->Init(35, 16, player, tiles);
	enemies[7]->Init(28, 5, player, tiles);
	enemies[6]->bullets = &bullets;
	enemies[7]->bullets = &bullets;
	enemies[7]->direction = true;

	//second tree apple
	enemies[13] = new CApple();
	enemies[13]->Init(48, 12, player, tiles);

	// "waterfall" melons
	enemies[14] = new CMelon();
	enemies[14]->Init(55, 13, player, tiles);
	enemies[14]->bullets = &bullets;
	enemies[14]->direction = true;
	enemies[15] = new CMelon();
	enemies[15]->Init(55 , 10, player, tiles);
	enemies[15]->bullets = &bullets;
	enemies[15]->direction = true;
	enemies[16] = new CMelon();
	enemies[16]->Init(55, 7, player, tiles);
	enemies[16]->bullets = &bullets;
	enemies[16]->direction = true;
	enemies[14]->cooldownTimer = 250;
	enemies[15]->cooldownTimer = 300;
	enemies[16]->cooldownTimer = 360;

	// "waterfall" apples
	enemies[17] = new CApple();
	enemies[18] = new CApple();
	enemies[19] = new CApple();
	enemies[20] = new CApple();
	enemies[21] = new CApple();
	enemies[17]->Init(55, 3, player, tiles);
	enemies[18]->Init(57, 3, player, tiles);
	enemies[19]->Init(59, 3, player, tiles);
	enemies[20]->Init(61, 3, player, tiles);
	enemies[21]->Init(63, 3, player, tiles);
	enemies[17]->maxFallDistance = 150;
	enemies[18]->maxFallDistance = 150;
	enemies[19]->maxFallDistance = 150;
	enemies[20]->maxFallDistance = 150;
	enemies[21]->maxFallDistance = 150;

	//slalom apples
	enemies[22] = new CApple();
	enemies[23] = new CApple();
	enemies[24] = new CApple();
	enemies[22]->Init(68, 3, player, tiles);
	enemies[23]->Init(69, 8, player, tiles);
	enemies[24]->Init(68, 13, player, tiles);


	//test checkpoint
	checkPoints[0] = new Checkpoint(0, 1325, 320, 1225, 0, 1400, 600, player, false, -1);
	checkPoints[1] = new Checkpoint(1, 0, 0, 3100, 0, 3400, 600, player, true, 2);

	scenerys[0] = new CScenery(100, 0, "res/Cloud.bmp", false, 1280, 365, true);
	//scenerys[1] = new CScenery(400, 100, "res/Melon.bmp", false, 47, 55, false);

}

void World::LoadLevel2(CPlayer *player){
	char picfile[] = "res/background2.bmp";
	*HImage = LoadImage(NULL, picfile, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);

	player->checkpoint = -1;

	if(!tiles == NULL){
		Reset();

		//delete(enemies);
	}

	level = 2;
	int **map;
	map=new int* [40];
	for(int i=0;i<40;i++)
	*(map+i)=new int[173];

	int map2[173][40] =  {
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 287,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 290, 287,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 291, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 290, 284, 284, 284, 284, 284, 287,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 291, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 291, 284, 284, 284, 284, 284, 284, 288,  -1,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 291, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1, 291, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1, 290, 287,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 287,  -1,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 291, 284, 286,  -1,  -1, 289, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 293,  -1,  -1,  -1,  -1,  -1,  -1, 293,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 287,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1, 290, 284, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 287,  -1, 290, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1, 291, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1, 284, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 289, 284, 284, 284}, 
	{ 284, 284,  -1, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 290, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1, 292,  -1,  -1,  -1, 292,  -1,  -1,  -1, 292,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 288,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1, 289, 284, 286,  -1, 291, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 286,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 289, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 286,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 286,  -1,  -1, 289, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1, 289, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 288,  -1,  -1,  -1, 292,  398, 399, 289, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 290, 287,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 287,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 287,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 291, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284},
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 287,  -1, 290, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 287,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286,  -1, 289, 286, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 288,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 293,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 284, 284}, 
	{ 284, 284,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 292,  -1, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}, 
	{ 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284}
};


	for(int i =0; i < 173; i++){
		for(int j =0; j < 40; j++){
			int inter = (map2[i][j]);
			map[j][i] = inter;
		}
	}
	
	tiles = new Tiles(40,173,map);
	bullets.tiles = tiles;

	enemyCount = 78;
	enemies = new CEnemy*[100];
	scenerys = new CScenery*[10];

	//first line
	enemies[0] = new CApple();
	enemies[1] = new CApple();
	enemies[2] = new CApple();
	enemies[3] = new CApple();
	enemies[4] = new CApple();
	enemies[5] = new CApple();
	enemies[6] = new CApple();
	enemies[7] = new CApple();
	enemies[8] = new CApple();
	enemies[9] = new CApple();
	enemies[10] = new CApple();
	enemies[0]->Init(5, 109, player, tiles);
	enemies[1]->Init(8, 109, player, tiles);
	enemies[2]->Init(11, 109, player, tiles);
	enemies[3]->Init(14, 109, player, tiles);
	enemies[4]->Init(17, 109, player, tiles);
	enemies[5]->Init(20, 109, player, tiles);
	enemies[6]->Init(23, 109, player, tiles);
	enemies[7]->Init(26, 109, player, tiles);
	enemies[8]->Init(29, 109, player, tiles);
	enemies[9]->Init(32, 109, player, tiles);
	enemies[10]->Init(35, 109, player, tiles);

	//second line
	enemies[11] = new CApple();
	enemies[12] = new CApple();
	enemies[13] = new CApple();
	enemies[14] = new CApple();
	enemies[15] = new CApple();
	enemies[16] = new CApple();
	enemies[17] = new CApple();
	enemies[18] = new CApple();
	enemies[19] = new CApple();
	enemies[20] = new CApple();
	enemies[21] = new CApple();
	enemies[11]->Init(4, 114, player, tiles);
	enemies[12]->Init(7, 114, player, tiles);
	enemies[13]->Init(10, 114, player, tiles);
	enemies[14]->Init(13, 114, player, tiles);
	enemies[15]->Init(16, 114, player, tiles);
	enemies[16]->Init(19, 114, player, tiles);
	enemies[17]->Init(22, 114, player, tiles);
	enemies[18]->Init(25, 114, player, tiles);
	enemies[19]->Init(28, 114, player, tiles);
	enemies[20]->Init(31, 114, player, tiles);
	enemies[21]->Init(34, 114, player, tiles);

	//bottom line
	enemies[22] = new CApple();
	enemies[23] = new CApple();
	enemies[24] = new CApple();
	enemies[25] = new CApple();
	enemies[26] = new CApple();
	enemies[27] = new CApple();
	enemies[28] = new CApple();
	enemies[29] = new CApple();
	enemies[30] = new CApple();
	enemies[31] = new CApple();
	enemies[32] = new CApple();
	enemies[22]->Init(5, 119, player, tiles);
	enemies[23]->Init(8, 119, player, tiles);
	enemies[24]->Init(11, 119, player, tiles);
	enemies[25]->Init(14, 119, player, tiles);
	enemies[26]->Init(17, 119, player, tiles);
	enemies[27]->Init(20, 119, player, tiles);
	enemies[28]->Init(23, 119, player, tiles);
	enemies[29]->Init(26, 119, player, tiles);
	enemies[30]->Init(29, 119, player, tiles);
	enemies[31]->Init(32, 119, player, tiles);
	enemies[32]->Init(35, 119, player, tiles);
	
	//couple more apples	
	enemies[33] = new CApple();
	enemies[34] = new CApple();
	enemies[35] = new CApple();
	enemies[36] = new CApple();
	enemies[37] = new CApple();
	enemies[38] = new CApple();
	enemies[39] = new CApple();
	enemies[40] = new CApple();
	enemies[33]->Init(7, 41, player, tiles);
	enemies[34]->Init(11, 41, player, tiles);
	enemies[35]->Init(15, 41, player, tiles);
	enemies[36]->Init(19, 41, player, tiles);
	enemies[37]->Init(23, 41, player, tiles);
	enemies[38]->Init(27, 41, player, tiles);
	enemies[39]->Init(31, 41, player, tiles);
	enemies[40]->Init(35, 41, player, tiles);

	//some more melons
	enemies[41] = new CMelon();
	enemies[42] = new CMelon();
	enemies[43] = new CMelon();
	enemies[44] = new CMelon();
	enemies[41]->Init(32, 51, player, tiles);
	enemies[42]->Init(36, 56, player, tiles);
	enemies[43]->Init(32, 61, player, tiles);
	enemies[44]->Init(36, 66, player, tiles);
	enemies[41]->bullets = &bullets;
	enemies[42]->bullets = &bullets;
	enemies[43]->bullets = &bullets;
	enemies[44]->bullets = &bullets;
	enemies[41]->direction = true;
	enemies[43]->direction = true;
	enemies[41]->cooldownTimer = 200;
	enemies[42]->cooldownTimer = 230;
	enemies[43]->cooldownTimer = 260;
	enemies[44]->cooldownTimer = 300;

	//2 melons at begin of level
	enemies[45] = new CMelon();
	enemies[46] = new CMelon();
	enemies[45]->Init(22, 11, player, tiles);
	enemies[46]->Init(27, 11, player, tiles);
	enemies[45]->bullets = &bullets;
	enemies[46]->bullets = &bullets;
	enemies[46]->direction = true;

	//4 apples right top from beginning
	enemies[47] = new CApple();
	enemies[48] = new CApple();
	enemies[49] = new CApple();
	enemies[50] = new CApple();
	enemies[47]->Init(34, 2, player, tiles);
	enemies[48]->Init(35, 2, player, tiles);
	enemies[49]->Init(36, 2, player, tiles);
	enemies[50]->Init(37, 2, player, tiles);
	
	//2 melons bit down from beginning
	enemies[51] = new CMelon();
	enemies[52] = new CMelon();
	enemies[51]->Init(21, 21, player, tiles);
	enemies[52]->Init(26, 21, player, tiles);
	enemies[51]->bullets = &bullets;
	enemies[52]->bullets = &bullets;
	enemies[52]->direction = true;

	//4 more apples
	enemies[53] = new CApple();
	enemies[54] = new CApple();
	enemies[55] = new CApple();
	enemies[56] = new CApple();
	enemies[53]->Init(14, 32, player, tiles);
	enemies[54]->Init(15, 32, player, tiles);
	enemies[55]->Init(18, 32, player, tiles);
	enemies[56]->Init(19, 32, player, tiles);
	
	//4 more apples
	enemies[57] = new CApple();
	enemies[58] = new CApple();
	enemies[59] = new CApple();
	enemies[60] = new CApple();
	enemies[57]->Init(22, 52, player, tiles);
	enemies[58]->Init(23, 52, player, tiles);
	enemies[59]->Init(27, 52, player, tiles);
	enemies[60]->Init(28, 52, player, tiles);

	//melon
	enemies[61] = new CMelon();
	enemies[61]->Init(3, 62, player, tiles);
	enemies[61]->bullets = &bullets;
	enemies[61]->direction = true;

	//melon
	enemies[62] = new CMelon();
	enemies[63] = new CMelon();
	enemies[64] = new CMelon();
	enemies[62]->Init(23, 74, player, tiles);
	enemies[63]->Init(19, 81, player, tiles);
	enemies[64]->Init(23, 83, player, tiles);
	enemies[62]->bullets = &bullets;
	enemies[63]->bullets = &bullets;
	enemies[64]->bullets = &bullets;
	enemies[63]->direction = true;

		enemies[62]->cooldownTimer = 200;
	enemies[63]->cooldownTimer = 410;
	enemies[64]->cooldownTimer = 355;

	//melon
	enemies[65] = new CMelon();
	enemies[65]->Init(20, 102, player, tiles);
	enemies[65]->bullets = &bullets;
	enemies[65]->direction = true;
		enemies[65]->cooldownTimer = 270;

	//trap apples
	enemies[66] = new CApple();
	enemies[67] = new CApple();
	enemies[66]->Init(2, 4, player, tiles);
	enemies[67]->Init(3, 4, player, tiles);

	//Bananas
	enemies[68] = new CBanana();
	enemies[68]->Init(128, 1152, player, tiles);
	enemies[68]->bullets = &bullets;

	enemies[69] = new CBanana();
	enemies[69]->Init(248,  1152, player, tiles);
	enemies[69]->bullets = &bullets;

		enemies[70] = new CBanana();
	enemies[70]->Init(358,  1152, player, tiles);
	enemies[70]->bullets = &bullets;



	enemies[71] = new CBanana();
	enemies[71]->Init(297, 1472, player, tiles);
	enemies[71]->bullets = &bullets;

		enemies[72] = new CBanana();
	enemies[72]->Init(413, 1472, player, tiles);
	enemies[72]->bullets = &bullets;

		enemies[73] = new CBanana();
	enemies[73]->Init(540, 1472, player, tiles);
	enemies[73]->bullets = &bullets;

		enemies[74] = new CBanana();
	enemies[74]->Init(672, 1472, player, tiles);
	enemies[74]->bullets = &bullets;

		enemies[75] = new CBanana();
	enemies[75]->Init(800, 1472, player, tiles);
	enemies[75]->bullets = &bullets;

		enemies[76] = new CBanana();
	enemies[76]->Init(928, 1472, player, tiles);
	enemies[76]->bullets = &bullets;

	enemies[77] = new CBanana();
	enemies[77]->Init(3*32, (74*32)-64, player, tiles);
	enemies[77]->bullets = &bullets;
	
	//scenery
	sceneryCount = 9;
	scenerys[0] = new CScenery(384, 100, "res/signGoLeft.bmp", false, 122, 106, false);
	scenerys[1] = new CScenery(64, 970, "res/signHaha.bmp", false, 65, 55, false);
	scenerys[2] = new CScenery(63, 670, "res/signSkull.bmp", false, 56, 67, false);
	scenerys[3] = new CScenery(576, 700, "res/signBeware.bmp", false, 91, 78, false);
	scenerys[4] = new CScenery(950, 1400, "res/signX.bmp", false, 122, 106, false);
	scenerys[5] = new CScenery(350, 4650, "res/poster.bmp", false, 462, 330, false);
	scenerys[6] = new CScenery(512, 5410, "res/jane32.bmp", false, 40, 30, false);
	scenerys[7] = new CScenery(555, 5411, "res/JB.bmp", false, 26, 29, false);
	scenerys[8] = new CScenery(483, 5339, "res/speechbubbles.bmp", false, 141, 57, false);


	powerUps = new CPowerUp*[10];
	powerUpCount = 4;
	//powerUps
	powerUps[0] = new CDoubleHealth();
	powerUps[1] = new CDoubleHealth();
	powerUps[2] = new CDoubleHealth();
	powerUps[3] = new CLever();
	

	player->x = 16*32;
	player->y = 0;
	player->spawnX = 16*32;
	player->spawnY = 0;


	bullets.tiles = tiles;
	
	player->tiles = tiles;
	
	powerUps[0]->Init(27, 37, player, tiles);
	powerUps[1]->Init(25, 50, player, tiles);
	powerUps[2]->Init(7, 73, player, tiles);
	powerUps[3]->Init(2, 73, player, tiles);


	checkPoints = new Checkpoint*[3];
	checkPointCount = 3;
	checkPoints[0] = new Checkpoint(0, 130, 1100, 92, 1088, 200, 1184, player, false, -1);
	checkPoints[1] = new Checkpoint(1, 530, 2060, 512, 2048, 550, 2250, player, false, -1);
	checkPoints[2] = new Checkpoint(2, 0, 0, 530, 5408, 540, 5420, player, true, 3);
		
}


int World::LoadGame(CPlayer* player, HANDLE* hImage){
	ifstream inFile("res/savedGame.sav");
	char c;
	char l[40];
	int i = 0;
	int foundColon;

	int currentDeaths;
	int currentTime;
	int currentPoints;
	int currentId;
	int currentX;
	int currentY;
	int currentLevel;
	int currentCheckpoint;
	char currentMode;

	currentLevel = 0;
	currentDeaths = 0;
	currentTime = 0;
	currentPoints = 0;
	currentCheckpoint = 0;

	inFile.getline(l,40);

	int index = 0;
	foundColon = 0;

	bool minus = false;

	c = l[0];
	while(c != NULL && index < 40){	
		if(c == ':'){
			foundColon++;
		}
		else{
			switch(foundColon){
				case 0:
					if(currentLevel == 0){
						currentLevel = atoi(&c);
					}
					else{
						currentLevel = (currentLevel * 10) +  atoi(&c);
					}
					break;
				case 1:
					//the minus actually stands for checking if brocko actually 
					//reached a checkpoint in the level
					if(minus == false && c == '-'){
						minus = true;
					}
					else if(currentCheckpoint == 0){
						currentCheckpoint =  atoi(&c);
					}
					else{
						currentCheckpoint = (currentCheckpoint * 10) +  atoi(&c);
					}
					break;
				case 2:
					if(currentDeaths == 0){
						currentDeaths =  atoi(&c);
					}
					else{
						currentDeaths = (currentDeaths * 10) +  atoi(&c);
					}
					break;
				case 3:
					if(currentPoints == 0){
						currentPoints =  atoi(&c);
					}
					else{
						currentPoints = (currentPoints * 10) +  atoi(&c);
					}
					break;
				case 4:
					if(currentTime == 0){
						currentTime =  atoi(&c);
					}
					else{
						currentTime = (currentTime * 10) +  atoi(&c);
					}
					break;

				default:
					break;

			}
		}
		index++;
		c = l[index];
	}
	if(minus){
		currentCheckpoint = -1;
	}
	Init(player, currentLevel, hImage);
	player->checkpoint = currentCheckpoint;
	

	if(currentCheckpoint != -1){
		player->x = checkPoints[currentCheckpoint]->spawnX;
		player->y = checkPoints[currentCheckpoint]->spawnY;
		player->spawnX = checkPoints[currentCheckpoint]->spawnX;
		player->spawnY = checkPoints[currentCheckpoint]->spawnY;
	}

	player->deaths = currentDeaths;
	player->score = currentPoints;

	foundColon = 0;
	

	while(inFile.getline(l,40) && i < enemyCount){
		

		currentId = 0;
		currentX = 0;
		currentY = 0;


		currentMode = 0;

		int index = 0;
		c = l[0];
		foundColon = 0;

		while(c != NULL && index < 40){
			
			if(c == ':'){
				foundColon++;
			}
			else{
				switch(foundColon){
					case 0:	
						if(currentId == 0){
							currentId = atoi(&c);
						}
						else{
							currentId = (currentId * 10) +  atoi(&c);
						}
						break;
					case 1:	
						currentMode = c;
						break;
					case 2:	
						if(currentX == 0){
							currentX = atoi(&c);
						}
						else{
							currentX = (currentX * 10) +  atoi(&c);
						}
						break;
					case 3:	
						if(currentY == 0){
							currentY = atoi(&c);
						}
						else{
							currentY = (currentY * 10) +  atoi(&c);
						}
						break;
				}

			}
			
			index++;
			c = l[index];
		}
		if(currentMode == 'p'){
			enemies[currentId]->pickedUp = true;
			enemies[currentId]->dead = true;
		}
		else if(currentMode == 'd'){
			enemies[currentId]->dead = true;
			enemies[currentId]->x = currentX;
			enemies[currentId]->y = currentY;
		}
		else{
			enemies[currentId]->x = currentX;
			enemies[currentId]->y = currentY;
		}
		
	
		i++;
		
	}

	return currentTime;

}

void World::SaveGame(int time, CPlayer* player){
	ofstream myFile;
	myFile.open("res/savedGame.sav");

	myFile << level << ":" << player->checkpoint << ":" <<  player->deaths << ":" << player->score << ":" << ((int)time) << "\n";
	
	for(int i = 0; i < enemyCount; i++){
		if(enemies[i]->pickedUp){
			myFile << i << ":p" << "\n";
		}
		else if(enemies[i]->dead){
			myFile << i << ":d:" << ((int)enemies[i]->x) << ":" << ((int)enemies[i]->y) << "\n";
		}
		else{
			myFile << i << ":n:" << ((int)enemies[i]->x) << ":" << ((int)enemies[i]->y) << "\n";
		}
	}
	myFile.close();

}